package factory.method.idcard;

import factory.method.framework.Product;

public class IdCard extends Product {
    private String owner;
    private int code;

    public IdCard(String owner, int code) {

        System.out.println("制作" + owner + "的ID卡");
        this.owner = owner;
        this.code = code;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡");
    }

    public String getOwner() {
        return owner;
    }

    public int getCode() {
        return code;
    }
}
